from datetime import datetime


class DateUtil:
    @classmethod
    def get_current_date(self):
        # 获取当前日期
        current_date = datetime.now()
        # 格式化日期为 "YYYY-MM-DD"
        formatted_date = current_date.strftime("%Y-%m-%d")
        return formatted_date

    @classmethod
    def format_date(self, need_format):
        return need_format.strftime("%Y-%m-%d")
